<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员功能</title>
</head>
<body>
<form action="/allstu" method="post">
    <button>查询所有学生</button>
</form>
<span style="color: green; ">${msgr1}</span>
<form action="/sreset" method="post">
    <label>重置学生密码</label>
    <br>
    <label>学号：</label><input name="sno">
    <input type="submit" value="确认">
</form>
<span style="color: red; ">${msgr}</span>
<form action="/insertstu" method="post">
    <label>添加学生</label>
    <br>
    <label>学号：</label><input name="sno"><br>
    <label>姓名：</label><input name="sname"><br>
    <label>性别：</label><input name="sex"><br>
    <label>班级：</label><input name="sclass"><br>
    <label>手机号：</label><input name="phone"><br>
    <label>年龄：</label><input name="age" type="number" value=0><br>
    <input type="submit" value="确认">
</form>
<span style="color: red; ">${msgi}</span>
<span style="color: green; ">${msgi1}</span>
<form action="/deletestu" method="post">
    <label>删除学生</label>
    <br>
    <label>学号：</label><input name="sno">
    <input type="submit" value="确认">
</form>
<span style="color: red; ">${msgd}</span>
<span style="color: green; ">${msgd1}</span>
<br>
<br>
<br>


</body>
</html>
